package com.binvshe.binvshe.mine.ticket;

import java.util.List;

/**
 * FileName: TicketEntity
 *
 * @CretedBy : zofnk
 * @CreateDate: 2016/9/21 17:02
 * @E-mail: zofnk@vip.qq.com
 * @RevisionsDate：
 * @ModifyNotes：
 */
public class TicketEntity {

    /**
     * id : 1260
     * order_id : 27
     * order_item_id : 18
     * ticket : {"id":47,"name":"212","activity":{"id":4,"name":"名称","banner":"http://120.76.128.98/upload/14e25c8e-2fa2-4b97-adb4-6cdef61f0cb1.jpg","sponsor":"测试","introduction":"<p>123<\/p>","detail":"<p>12323232<\/p>","member_limit":"100","type":0,"club_id":0,"user_id":0,"begin_time":1473091200000,"end_time":1473955200000,"deadline":1474646400000,"province":"福建","city":"厦门","address":"福建省厦门市思明区莲前西路285号-之4","longitude":118.143504,"latitude":24.483033,"price":"￥100~123","member_count":1,"read_count":71,"share_count":0,"state":true,"del":false,"members":[]},"combinations":"","cycle":{"id":23,"activity_id":4,"through":false,"name":"09月08日 星期四","date":1473264000000},"times":{"id":7,"activity_id":4,"name":"123","begin":"00:05","end":"13:05"},"original_price":31232,"price":232,"remain":314,"total":323,"state":true,"del":false,"displayorder":0,"begin_time":1473264300000,"end_time":1473311100000,"create_time":1473245735000,"update_time":1474184291000}
     * activity_id : 4
     * user_id : 209
     * qrcode_id : 7004f2a6-c137-4c8d-8c7f-a171ff3ffc08
     * used : false
     * del : false
     * create_time : 1473594085000
     * update_time : 1473594085000
     */

    private int id;
    private int order_id;
    private int order_item_id;
    /**
     * id : 47
     * name : 212
     * activity : {"id":4,"name":"名称","banner":"http://120.76.128.98/upload/14e25c8e-2fa2-4b97-adb4-6cdef61f0cb1.jpg","sponsor":"测试","introduction":"<p>123<\/p>","detail":"<p>12323232<\/p>","member_limit":"100","type":0,"club_id":0,"user_id":0,"begin_time":1473091200000,"end_time":1473955200000,"deadline":1474646400000,"province":"福建","city":"厦门","address":"福建省厦门市思明区莲前西路285号-之4","longitude":118.143504,"latitude":24.483033,"price":"￥100~123","member_count":1,"read_count":71,"share_count":0,"state":true,"del":false,"members":[]}
     * combinations :
     * cycle : {"id":23,"activity_id":4,"through":false,"name":"09月08日 星期四","date":1473264000000}
     * times : {"id":7,"activity_id":4,"name":"123","begin":"00:05","end":"13:05"}
     * original_price : 31232
     * price : 232
     * remain : 314
     * total : 323
     * state : true
     * del : false
     * displayorder : 0
     * begin_time : 1473264300000
     * end_time : 1473311100000
     * create_time : 1473245735000
     * update_time : 1474184291000
     */

    private TicketBean ticket;
    private int activity_id;
    private int user_id;
    private String qrcode_id;
    private boolean used;
    private boolean del;
    private long create_time;
    private long update_time;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public int getOrder_item_id() {
        return order_item_id;
    }

    public void setOrder_item_id(int order_item_id) {
        this.order_item_id = order_item_id;
    }

    public TicketBean getTicket() {
        return ticket;
    }

    public void setTicket(TicketBean ticket) {
        this.ticket = ticket;
    }

    public int getActivity_id() {
        return activity_id;
    }

    public void setActivity_id(int activity_id) {
        this.activity_id = activity_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getQrcode_id() {
        return qrcode_id;
    }

    public void setQrcode_id(String qrcode_id) {
        this.qrcode_id = qrcode_id;
    }

    public boolean isUsed() {
        return used;
    }

    public void setUsed(boolean used) {
        this.used = used;
    }

    public boolean isDel() {
        return del;
    }

    public void setDel(boolean del) {
        this.del = del;
    }

    public long getCreate_time() {
        return create_time;
    }

    public void setCreate_time(long create_time) {
        this.create_time = create_time;
    }

    public long getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(long update_time) {
        this.update_time = update_time;
    }

    public static class TicketBean {
        private int id;
        private String name;
        /**
         * id : 4
         * name : 名称
         * banner : http://120.76.128.98/upload/14e25c8e-2fa2-4b97-adb4-6cdef61f0cb1.jpg
         * sponsor : 测试
         * introduction : <p>123</p>
         * detail : <p>12323232</p>
         * member_limit : 100
         * type : 0
         * club_id : 0
         * user_id : 0
         * begin_time : 1473091200000
         * end_time : 1473955200000
         * deadline : 1474646400000
         * province : 福建
         * city : 厦门
         * address : 福建省厦门市思明区莲前西路285号-之4
         * longitude : 118.143504
         * latitude : 24.483033
         * price : ￥100~123
         * member_count : 1
         * read_count : 71
         * share_count : 0
         * state : true
         * del : false
         * members : []
         */

        private ActivityBean activity;
        private String combinations;
        /**
         * id : 23
         * activity_id : 4
         * through : false
         * name : 09月08日 星期四
         * date : 1473264000000
         */

        private CycleBean cycle;
        /**
         * id : 7
         * activity_id : 4
         * name : 123
         * begin : 00:05
         * end : 13:05
         */

        private TimesBean times;
        private double original_price;
        private double price;
        private int remain;
        private int total;
        private boolean state;
        private boolean del;
        private int displayorder;
        private long begin_time;
        private long end_time;
        private long create_time;
        private long update_time;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public ActivityBean getActivity() {
            return activity;
        }

        public void setActivity(ActivityBean activity) {
            this.activity = activity;
        }

        public String getCombinations() {
            return combinations;
        }

        public void setCombinations(String combinations) {
            this.combinations = combinations;
        }

        public CycleBean getCycle() {
            return cycle;
        }

        public void setCycle(CycleBean cycle) {
            this.cycle = cycle;
        }

        public TimesBean getTimes() {
            return times;
        }

        public void setTimes(TimesBean times) {
            this.times = times;
        }

        public double getOriginal_price() {
            return original_price;
        }

        public void setOriginal_price(double original_price) {
            this.original_price = original_price;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public int getRemain() {
            return remain;
        }

        public void setRemain(int remain) {
            this.remain = remain;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public boolean isState() {
            return state;
        }

        public void setState(boolean state) {
            this.state = state;
        }

        public boolean isDel() {
            return del;
        }

        public void setDel(boolean del) {
            this.del = del;
        }

        public int getDisplayorder() {
            return displayorder;
        }

        public void setDisplayorder(int displayorder) {
            this.displayorder = displayorder;
        }

        public long getBegin_time() {
            return begin_time;
        }

        public void setBegin_time(long begin_time) {
            this.begin_time = begin_time;
        }

        public long getEnd_time() {
            return end_time;
        }

        public void setEnd_time(long end_time) {
            this.end_time = end_time;
        }

        public long getCreate_time() {
            return create_time;
        }

        public void setCreate_time(long create_time) {
            this.create_time = create_time;
        }

        public long getUpdate_time() {
            return update_time;
        }

        public void setUpdate_time(long update_time) {
            this.update_time = update_time;
        }

        public static class ActivityBean {
            private int id;
            private String name;
            private String banner;
            private String sponsor;
            private String introduction;
            private String detail;
            private String member_limit;
            private int type;
            private int club_id;
            private int user_id;
            private long begin_time;
            private long end_time;
            private long deadline;
            private String province;
            private String city;
            private String address;
            private double longitude;
            private double latitude;
            private String price;
            private int member_count;
            private int read_count;
            private int share_count;
            private boolean state;
            private boolean del;
            private List<?> members;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getBanner() {
                return banner;
            }

            public void setBanner(String banner) {
                this.banner = banner;
            }

            public String getSponsor() {
                return sponsor;
            }

            public void setSponsor(String sponsor) {
                this.sponsor = sponsor;
            }

            public String getIntroduction() {
                return introduction;
            }

            public void setIntroduction(String introduction) {
                this.introduction = introduction;
            }

            public String getDetail() {
                return detail;
            }

            public void setDetail(String detail) {
                this.detail = detail;
            }

            public String getMember_limit() {
                return member_limit;
            }

            public void setMember_limit(String member_limit) {
                this.member_limit = member_limit;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getClub_id() {
                return club_id;
            }

            public void setClub_id(int club_id) {
                this.club_id = club_id;
            }

            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }

            public long getBegin_time() {
                return begin_time;
            }

            public void setBegin_time(long begin_time) {
                this.begin_time = begin_time;
            }

            public long getEnd_time() {
                return end_time;
            }

            public void setEnd_time(long end_time) {
                this.end_time = end_time;
            }

            public long getDeadline() {
                return deadline;
            }

            public void setDeadline(long deadline) {
                this.deadline = deadline;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public double getLongitude() {
                return longitude;
            }

            public void setLongitude(double longitude) {
                this.longitude = longitude;
            }

            public double getLatitude() {
                return latitude;
            }

            public void setLatitude(double latitude) {
                this.latitude = latitude;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public int getMember_count() {
                return member_count;
            }

            public void setMember_count(int member_count) {
                this.member_count = member_count;
            }

            public int getRead_count() {
                return read_count;
            }

            public void setRead_count(int read_count) {
                this.read_count = read_count;
            }

            public int getShare_count() {
                return share_count;
            }

            public void setShare_count(int share_count) {
                this.share_count = share_count;
            }

            public boolean isState() {
                return state;
            }

            public void setState(boolean state) {
                this.state = state;
            }

            public boolean isDel() {
                return del;
            }

            public void setDel(boolean del) {
                this.del = del;
            }

            public List<?> getMembers() {
                return members;
            }

            public void setMembers(List<?> members) {
                this.members = members;
            }
        }

        public static class CycleBean {
            private int id;
            private int activity_id;
            private boolean through;
            private String name;
            private long date;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getActivity_id() {
                return activity_id;
            }

            public void setActivity_id(int activity_id) {
                this.activity_id = activity_id;
            }

            public boolean isThrough() {
                return through;
            }

            public void setThrough(boolean through) {
                this.through = through;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public long getDate() {
                return date;
            }

            public void setDate(long date) {
                this.date = date;
            }
        }

        public static class TimesBean {
            private int id;
            private int activity_id;
            private String name;
            private String begin;
            private String end;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getActivity_id() {
                return activity_id;
            }

            public void setActivity_id(int activity_id) {
                this.activity_id = activity_id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getBegin() {
                return begin;
            }

            public void setBegin(String begin) {
                this.begin = begin;
            }

            public String getEnd() {
                return end;
            }

            public void setEnd(String end) {
                this.end = end;
            }
        }
    }
}
